import request from '@/utils/request'

export default{
    //分页查询
     pageBanner(current, limit) {
        return request({
            url: `/educms/bannerAdmin/pageBanner/${current}/${limit}`,
            method: 'get'
        })
    },
    //增加banner
    addBanner(banner){
        return request({
            url: `/educms/bannerAdmin/addBanner`,
            method: 'post',
            data:banner
        })
    },
    //查询banner
    getBanner(id){
        return request({
            url: `/educms/bannerAdmin/getBanner/${id}`,
            method: 'get'
        })
    },

    //修改banner
    updateBanner(banner){
        return request({
            url: `/educms/bannerAdmin/updateBanner`,
            method: 'post',
            data:banner
        })
    },
    //删除banner
    deleteBanner(id){
        return request({
            url: `/educms/bannerAdmin/deleteBanner/${id}`,
            method: 'delete'
        })
    }
}    